﻿// MIT License

// Copyright (c) 2021-2023 1024


namespace Kyx.Application.HtAdminServices;

public interface IHtAccountService
{
    /// <summary>
    /// 管理登录
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<HtLoginOut> Login(HtLoginInput input);

    /// <summary>
    /// 登录API Swagger 可视化页面
    /// </summary>
    /// <returns></returns>
    void LoginApiSwagger();

    /// <summary>
    /// 获取当前登录用户
    /// </summary>
    /// <returns></returns>
    Task<HtUserOut> GetLoginUser();

    /// <summary>
    /// 获取后台首页左侧菜单列表
    /// </summary>
    /// <param name="area">区域</param>
    /// <returns></returns>
    Task<List<PearMenuItemOut>> GetMenus(string area);
}